package com.example.scanidcard;

import android.util.Log;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;

public class IdentifyResult implements Serializable {
        @SerializedName("Address")
        private String Address;
        @SerializedName("Birth")
        private String Birth;
        @SerializedName("IdNum")
        private String IdNum;
        @SerializedName("Name")
        private String Name;
        @SerializedName("Nation")
        private String Nation;
        @SerializedName("Sex")
        private String Sex;
        @SerializedName("RequestId")
        private String RequestId;
        @SerializedName("ValidDate")
        private String ValidDate;

        // 对应没拍到完整身份证时的Error相关属性
        private Error Error;
        // 内部类对应Error结构
        public class Error {
            @SerializedName("Code")
            private String Code;
            @SerializedName("Message")
            private String Message;

            public String getCode() {
                return Code;
            }

            public void setCode(String code) {
                Code = code;
            }

            public String getMessage() {
                return Message;
            }

            public void setMessage(String message) {
                Message = message;
            }
        }

        public String getAddress() {
            return Address;
        }

        public void setAddress(String address) {
            Address = address;
        }

        public String getBirth() {
            return Birth;
        }

        public void setBirth(String birth) {
            Birth = birth;
        }

        public String getIdNum() {
            return IdNum;
        }

        public void setIdNum(String idNum) {
            IdNum = idNum;
        }

        public String getName() {
            return Name;
        }

        public void setName(String name) {
            Name = name;
        }

        public String getNation() {
            return Nation;
        }

        public void setNation(String nation) {
            Nation = nation;
        }

        public String getSex() {
            return Sex;
        }

        public void setSex(String sex) {
            Sex = sex;
        }

        public String getRequestId() {
            return RequestId;
        }

        public void setRequestId(String requestId) {
            RequestId = requestId;
        }

        public String getValidDate() {
            return ValidDate;
        }

        public void setValidDate(String validDate) {
            ValidDate = validDate;
        }

        public Error getError() {
            return Error;
        }

        public void setError(Error error) {
            Error = error;
        }


    }